﻿@using AntDesign
@using lcwb.Shared.Service
@inject NoteDrawerService DrawerService
@implements IDisposable

<Drawer Visible="@DrawerService.IsVisible" 
        Title="@("工具箱")" 
        Width="700"
        OnClose="DrawerService.Close">
    
    <Tabs>
        <TabPane Key="note" Tab="创建笔记">
            <NoteComponent />
        </TabPane>
        
        <TabPane Key="chat" Tab="对话机器人">
            <ChatBot />
        </TabPane>
    </Tabs>

</Drawer>

@code {
    protected override void OnInitialized()
    {
        DrawerService.OnChange += StateHasChanged;
    }

    public void Dispose()
    {
        DrawerService.OnChange -= StateHasChanged;
    }

    

    
}